// Es6 Set
let arr = [1,2,3,3,4,5]
console.log(Array.from(new Set(arr)));
console.log([...new Set(arr)]);